#include "capacitor.h"
void capacitor::begin()
{
    GC = 2.0e-6 * C / delt;
}

void capacitor::dsdyn()
{
    Ihis = -(GC * VC + IC);
}

void capacitor::dsout()
{
    IC = VC * GC + Ihis;
}